<h1>Editing order</h1>

<%= error_messages_for :order %>

<% form_for(:order, :url => order_path(@order), :html => { :method => :put }) do |f| %>
  <p>
    <b>Id</b><br />
    <%= f.text_field :id %>
  </p>

  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Address</b><br />
    <%= f.text_field :address %>
  </p>

  <p>
    <b>City</b><br />
    <%= f.text_field :city %>
  </p>

  <p>
    <b>State</b><br />
    <%= f.text_field :state %>
  </p>

  <p>
    <b>Zip</b><br />
    <%= f.text_field :zip %>
  </p>

  <p>
    <b>Email</b><br />
    <%= f.text_field :email %>
  </p>

  <p>
    <b>Shipping option</b><br />
    <%= f.text_field :shipping_cost %>
  </p>

  <p>
    <b>Card type</b><br />
    <%= f.text_field :card_type %>
  </p>

  <p>
    <b>Credit card</b><br />
    <%= f.text_field :credit_card %>
  </p>

  <p>
    <b>Card holder</b><br />
    <%= f.text_field :card_holder %>
  </p>

  <p>
    <b>Expiration month</b><br />
    <%= f.text_field :expiration_month %>
  </p>

  <p>
    <b>Expiration year</b><br />
    <%= f.text_field :expiration_year %>
  </p>

  <p>
    <b>Created on</b><br />
    <%= f.datetime_select :created_on %>
  </p>

  <p>
    <b>Updated on</b><br />
    <%= f.datetime_select :updated_on %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', order_path(@order) %> |
<%= link_to 'Back', orders_path %>